import { defineStore } from "pinia";
export const useDraggableStore = defineStore({
  id: "draggable",
  state: () => {
    return {
      contentData: [],
    };
  },
  actions: {
    setData(data) {
      this.contentData = data;
    },
  },
  persist: {
    enabled: true,
    strategies: [
      {
        key: "my_draggable",
        storage: sessionStorage,
        paths: ["contentData"],
      },
    ],
  },
});
